finish exercise 2.64 and 2.65