simulation a project in c.