Modify the javaFX code in ch03