Add shebangs
Add print method for patterns