Code for RecLecture