ECE264 homework.