Evaluating code in the context of a scope