Completed implementation of calculation and output