Some code for calculating lobe volumes