JavaFX material and excercise