WIP solution for problem 37