Homework 5 solutions