Implement context class for multiple context variable assignment