Work on Compiler. Add Pattern class to compile patterns.