added methods in course model to return teachers and students