Finished the 3rd exercise