restructuring C into project