added relationships to models
added current and past scope lambdas to course model
finished writing model associations