Having to play the roles of child psychologist, source of knowledge, class manager and behavioural model makes being a teacher challenging and rewarding.
Note that 'being a teacher' is a periphrasis of 'teaching', but preferable stylistically to 'teaching challenging and rewarding' in which three words ending in ing have different syntactic functions.