first half of model fitting lecture