Second chapter rewritten, little fixes to the third one