create context class