Problem 8-6 complete