Project 4 for CS367