private static void checkoutMovie() {
   printAvailableMovies();
   System.out.println("Enter the number of the movie you would like to check out: ");
   int movieIndex = keyboard.nextInt();
   try {
     library.getAvailableMovies().get(movieIndex).checkOut(currentUser);
     System.out.println("Thank you! Enjoy the movie");
   } catch (StockNotAvailableException e) {
     System.out.println("That movie is not available");
   } catch (InvalidLoginException e) {
     System.out.println("Library number and password do not match");
   }
 }
 private static void printAvailableMovies() {
   System.out.println("Available Movies: \n");
   printList(library.getAvailableMovies());
 }