Project 2 for cs640