private boolean showTopLevelMenu()
    {
        stream.println("1. Show all books.");
        stream.println("2. Show all Cds.");
        stream.println("3. Show all magazines.");
        stream.println("4. Show loans.");
        stream.println("5. Search");
        stream.println("6. Exit.");
        stream.println("> ");

        boolean done = false;
        int userChoice = scanner.nextInt(); 
        // ottaa rivinvaihdon pois scannerista, searchin tähden
        scanner.skip("[\\r\\n]?");
        switch(userChoice)
        {
            case 1:
                showAllBooks();
                break;
            case 2:
                showAllCds();
                break;
            case 3:
                showAllMagazines();
                break;
            case 4:
                showLoans();
                break;
            case 5:
                search();
                break;
            case 6:
                done = true;
            default:
                break;
        }
        return done;
    }