Measuring the volume and weight of small and medium-size objects