The getVolume doesn't change anything. It only calculates and return the local variable value. :)