How to write your own optimization operand