Added example implementation of a message handler