Calculating area and volume for different shapes.