Added class to wrap a handler

abstracting away what time of event it handles