updated answers to homework 4