wrote problem 3 question