Added the code from the second lecture.
Added the code from the second lecture.