Moving the Context code into a .cpp file