4.16 and part of 4.17

fitted the model for both problems