get_units returns a unit objects the name of which needs to be accessed by using the .name attribute.