Бышева - Лабораторная работа #2 

Here you are setting the viewModel property directly - it's a kind of "hardcode" I think. 
I hope tableView.setItems(newTable) should also work here and it will be better, because it will not depend on viewModel.
But if it will not work, than it's ok.