Added course_id to the Attempt model