add enumeration method
rename newArray to createInstance