edited initial loading, made getCourses() method