working on first chapter and merged the question from 4th edition and 5th edition