new functions: dataSample, plotTrainedModel, gpSim