Added bestFit method