Added exercise: ex2-4.c