Made an interface for objects that have a name property