made lecture.rb model