Added exercise: ex5-2.c