second variant for the greet example, demonstrating how to specify the controller in the code instead of in the fxml