add Operations class.
refactor old interface Operations to new interface OpCodes