How to work with array of pointers.