construction/creation of array class improved