finish some tasks of lab5