Working on problem 12