implemented the use of op codes.