Modeling a system of particles with the Verlet algorithm