class is put in stl::vector