Exercises 3(22->24) done