Changed array index method

Array indexed using [] operator instead of pointer dereference with *