Added function to get the names of objects (nouns).