Fix for example typo; but example output shows erroneous inversion...