added visitor pattern
Merge pull request #4 from axhm3a/master

added visitor pattern