Dynamics of solar coronal loops