new method that returns the courses passed by student