Storing marker objects in an array