Problem 4 solved (C)