Added examples of factory usage.