Created Factory class for shared package