Add classes to demonstrate use of inner classes for factories