Use memoized assignmnets in CourseData.

Addes assignments to `CourseData`.

See #521.