Finished exercises 1 to 4