Add Class "DataReplace".

Add class and rewrite main program.