New version of test.c from professor