array work in class