Finish hw3-2 and hw3-3