Create pattern.java