refactoing of model base classes to be independant of JavaFX