implemented arrayMaxSize