Create calc.cpp

this is for demo purpose.