private Integer pickBookingInList(List<Booking> list) {
        String input = null;

        while (true) {
            System.out.println("Select an item in the following list :");
            Integer i = 1;
            for (Booking b : list) {
                System.out.println("   " + (i++) + " "
                        + b.toListString(simpleDateFormat));
            }
            System.out.println("   b. Go back");

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

            if (input.equalsIgnoreCase("b")) {
                return -1;
            }

            try {
                return Integer.parseInt(input);
            } catch (NumberFormatException e) {
                System.out.println("Invalid input. Try again.");
            }
        }
    }