CMPE 273 assignment 2