added working array1 class