Finished exercises 1 & 2