attempted hw by making own instance and contructor for orderedSarray