Modification of "GoingUp". Now allows both ascending and descending series of numbers