Completing the array code