working problem 3