added problem 3 c file