CMPE273-assignment2