moved ex1.c