finished PartiallyFilledArray class