Molecular vibrations
If the molecule has more than two atoms, then things get more complicated. Suppose just one more atom is added so now there are three atoms like in water H2O where the two hydrogen atoms are both attached to the central oxygen atom. Remember with hydrogen there was one kind of stretching, but in water there are two kinds of stretching and four other kinds of vibration called bending vibrations as shown below.