Homework 6 solutions