Lecture1 solution