Working on problem 1.