Code for ECE270 Fall-14