add calculator.h library an example