finished exercises 1-4