completed working problem 2 example