solution to homework5