The heart beats because of interactions between myosin molecules in the thick filaments and actin in the thin filaments, which cause them to slide past each other to produce contraction.