completed problem2