How are bonds formed and broken?