added a command handler class