move array data from mainWindowClass to myDataModel and add constructor for initData there