public Shape getShape(String shapeName) {

		// Java 8 can use Strings in switch.
		switch (shapeName) {
		case "CIRCLE":
			return new Circle();
		case "RECTANGLE":
			return new Rectangle();
		case "SQUARE":
			return new Square();
		default:
			return null;
		}
	}