Replace (1..self) with 1.upto(self)