This is for CS3 homework1 only.