added cmpsc311.c