finish the lab6 totally