$C.define() method to define custom actions.