overriding == method. two commands are equal when they have the same name