Events classificator: Construction, repair and restoration