Fixing errors in transition from course list to hashmap