add some code of lab3