problem 8 updated