a basic example for dispatching