Final and correct version of the 2rd series exercise(awful thing)