Created optiocontext class