declaring an array and accessing array elements