Added calculations.cpp and calculations.h.