added solution for chapter_7