getnames function

Get the names of an object