ResolutionFitError was using the class variable for data. Doesn't need to since it gets passed the data as an argument!