some work on problem 8