Code uptill 8 chapters

Completed writing code of 8 chapters.