class 2 function scope, begin introducing higher-order functions