add solution to homework 3