integrated an array class