add_names function

Add names to a vector