implemented loading and boundary conditions in Beam