public void removeItem(String referenceToRemove){
        boolean foundItem = false;

        for(int i=0; i < libraryItems.size(); i++){
            if(libraryItems.get(i).getReference().equals(referenceToRemove)){
                foundItem = true;
                if(libraryItems.get(i).getInLibrary()){
                    libraryItems.remove(i);
                    break;
                } else {
                    System.out.println("Item " + libraryItems.get(i).getReference() + " is checked out and cannot be removed.");
                }
            }
        }
        if(!foundItem){
            System.out.println("No item with reference " + referenceToRemove + " has been found.");
        }
    }