added old solution to Problem 17