Issue #7 - implemented volume casting algorithm.