updated problem 3a