Added some very basic functionality to calculate calories.