public static boolean input(String question) {
        System.out.println(question);
        Scanner sc = new Scanner(System.in);
        String text = sc.nextLine();
        try {
            return Boolean.parseBoolean(text);
        } catch (NumberFormatException e) {
            System.err.println("Enter a valid boolean");
            return input(question);
        }
    }