EE271 Assignment 2