final copy of homework #1 problem 4