More work on Homework 5