Added code from today's lecture.