Finished exercises 5-6