added search methods to pupil and teacher