Changed getCourse and remove to use foreach loop