Adding array code added