Homework 3 solutions