added more example including creating factories.