added template
Added pattern matching script