Use createsampleworkspace in Fit and Rebin