(CSCS1320) Work on logic.c