array as class