Create Pattern_factory.java