array init and pointers implemented