CS369 project 2