Support replace implementation and Refactoring
Merge pull request #4 from tokorom/replaceimp

Support replace implementation