Working on problem 22