basic function.
Merge pull request #21 from wuyinan0126/master

basic function.