Adding lecture code before class.