chapter05 for homework06