public static void main(String[] args) {

		// create a small dog
		Dog dog = DogFactory.createDog("small");
		dog.speak();

		// create a big dog
		dog = DogFactory.createDog("big");
		dog.speak();

		// create a working dog
		dog = DogFactory.createDog("working");
		dog.speak();

	}