chapter_5, ex_10,14,31 with comments