Updated simple.c