finish hw2-4