finish hw0_p1&p2