wrote problem 3.3