How to implement an own operation?