Simulation of the dynamics of laser-cluster interaction