changed Context to inherit from dict