An Approach to Modeling Vibrations of Systems Composed of Beams, Rigid Bodies, and Point Masses