Partly done lab4.