cs330 assignment no 2