more work on problem 12