adding factory to pom.xml
Implementing Factory design pattern