finish book section 3.5.2 all exercise