Solve koan about higher order functions