codes of chapter-5 & chapter-6 added