Added example calculation and unit test