A box on the end of a string swings from side to side like a pendulum. When the string is vertical, the tension in the string is
the weight of the box.