Finish: chapters 12 and 13

Finished chapters 12 and 13