Implementing Context class