A pendulum bob will swing back and forth many times before coming to rest. It stops moving because of _____.