Added Factory Method example.