Created method for setting up the context