OOP Principles part 2, task 3 - InvalidRangeException