Finished exercises 1-7