private static boolean homePageForPassenger(ObjectOutputStream toServer, ObjectInputStream fromServer, Scanner scanner) throws ParseException, IOException, ClassNotFoundException {
        log.debug("Start method \"homePageForPassenger\"");
        System.out.println("1 - find train, 2 - timetable by station, 3 - buy ticket, 0 - exit");
        String scan = scanner.next().toLowerCase();
        while (!"1".equals(scan) && !"2".equals(scan) && !"3".equals(scan) && !"0".equals(scan)) {
            System.out.println("Input 0, 1, 2 or 3");
            scan = scanner.next().toLowerCase();
        }
        switch (scan.charAt(0)) {
            case '1': {
                return PassengerHomePageHelper.findTrain(toServer, fromServer, scanner);
            }
            case '2': {
                return PassengerHomePageHelper.timetableByStation(toServer, fromServer, scanner);
            }
            case '3': {
                return PassengerHomePageHelper.buyTicket(toServer, fromServer, scanner);
            }
            case '0': {
                return false;
            }
            default:
                return false;
        }
    }