adding problem 1 c# and perl