The dynamics of mentorship