Finished the fourth exercise