added basic pattern input, and formatted input