Solved problem 23
Solved problem 24