CECS274 Homework 2