Answers to homework assignment