Added volume variable

Added a variable that calculates volume.