Example code changed to meet requirements for inverse.