updated model methods for user and course and passing all tests.