Lecture 4 homework