public boolean pertains(Command command) {
   return command.getHeader().equals("dir") && command.argumentsCount() == 0;
 }
 public boolean pertains(Command command) {
   return command.getHeader().equals("exit");
 }