show_props function

The following function takes as its argument an object and the object's name

It then iterates over all the object's properties and returns a string that lists the property names and their values.