Solutions to homework exercises from Lecture 6.