This is a simple model created with EJS.The mass for two particles are the same initially.Use mouse to drag the slider to change the velocity for one of the particle.You will find the velocity exchanged when collision occurred.Then, drag the slider to modify the mass for the particles, the situation getting complicated. However, the momentum is always conserved.