Close to solution on problem 37