solution to homework