added first draft of implementing a custom operator