Add problem 1 C procedure