Refactor Array class.