Use pointer in array