Code for chapters 1-7
README updated.