Single dimensional array indexing implemented