wrote project in c