implement ways to add handlers (constructor, methods)