Added Operate class and give up functionality