added a command handler class

Just added a command handler class