Changed the numberTimesRepeated to be a instance method