Added exercise ex2-10.c