I think I solved problem 1.