first attempt at problem 15, this one's giving me headaches