add decorator
Merge pull request #2 from Gonghan/decorator

add decorator