context: add context class to store shared data