thanks to prof. Esquembre, F. (2009). Collision in one dimension, from http://www.um.es/fem/EjsWiki/Main/ExamplesCollision1D, i managed to continue to change and customize with teachers and students!thanks! prof paco!