added the starting code of traids