finished exercises 3.5