Demo on rectilinear collisions and derivation of equations