Update cal.cpp

added new cube function
Update cal.cpp
Merge pull request #1 from rachaeldsouza/3423

3423