initial version of context class