Safety plan to reduce the number of casualties on the railway