Base Factory class to create object. Includes a sample class