organize code for CoF project