Finished the 2nd exercise