Added  average variable

Added a variable containing the expression to solve the average of the
groceries. Added a console.log and successfully printed it.