objAndNames function

Add names to an object