project 1 for CS369 assignment