Homework1 for ECE595