Add solutions for problem 24, 26 and 28