the solution for the problem 'Collision' is added