Finds mass of an object