issue #2

I have created a new dir (example3) for testing.
Note that Add() and Sub() has duplicated code?  would you be able to change the methods ( maybe add a 3rd one ) in order to remove the duplicated code?