finished most of calibration chapter