CS 171 project 2 and 3