Writing vector accessors