added commandHandler class