Array class - refactored magic numbers to self