finish exercise 2.81 - 2.84 in section 2.52