Add calculatr.cpp - a rewrite of ex1.cpp