Finished exercises 1 to 3