Undid modifications to PinnedCourses, after reading the code through finally understood how it should work.