how can i simply pass an array from constructor without using pointers?