Added function for getting courses