adding OrderedArray class