accessing method is added into vector types

user can access vector elements as array