finish exercise 1.2.8 -- printing