higher order functions are stronger than classes