solved (sloppily) problem 35.