updating problem 3