Working out the context model