Implement bestFit method