Add Context class for variable and function scoping