Solution to Homework 1