Added train/test split to the Model class