continued problem 1