private Integer pickItemInList(Collection<BorrowableStock> list) {
        String input = null;
        Boolean valid = false;

        while (!valid) {
            System.out.println("Select an item in the following list :");
            for (BorrowableStock b : list) {
                String borrowableName = b.getName();
                System.out.println("   " + b.getId() + ". " + borrowableName);
            }
            System.out.println("   b. Go back");

            try {
                input = br.readLine();
            } catch (IOException e) {
                // do nothing
            }

            for (BorrowableStock b : list) {
                Integer id = b.getId();
                if (input.equals(Integer.toString(id))) {
                    return id;
                }
            }
            if (input.equalsIgnoreCase("b")) {
                return -1;
            }
        }
        return -1;
    }