started implementation of the context window