Extended TypeFactory sample