Implemented Context class