Coding Context class and context creation