improve the loading-mappings-example with subclassing of the gen code