working problem 6