wrote first external in c