lessons about scope of variables