Added demonstration calculation and unit test