Calculating the mass of one object