add pattern option
Merge pull request #8 from sonots/pattern

add pattern option