Calculating area and volume of objects