trying to learn to program lambdas