Added an example of auto type registration for types that are created by interface.