Describe how to define handler