Create volume function

Create volume function