solved problem 45. the problem 44 was previously over-thought