project1 for CS242