Lambdas, lets

Added lambdas/lets.  Abstracted some code from define, to be used in lambda.