improves lessons_taught method in user model