Finished exercises 1.21, 1.22