added function to calculate average calories burned