Class based version of Dispatch micro-framework