Create logic.c