Solutions to Homework 6