Solved problem 20, added constructors and destructors in C