Solves problem 28