added example of usage of a Factory