This is the homework2 for EECS 481