Added C version of the simple program