problem 12 updated