The working of the beam balance is based on the principle of