Code uptill 6 chapters

Completed writing code of 6 chapters.