    if ( com[0] == 'i' ) {
      insert(key);
    } else if ( com[0] == 'd' ) {
      if (strlen(com) > 6){
	if ( com[6] == 'F' ) {
	  deleteFirst();
	} else if ( com[6] == 'L' ) {
	  deleteLast();
	}
      } else {
	delete(key);
      }
    }
  