Solved problem 48 (kinda proud of this one)