completed hwk5 (did not do problem 5)