complete the lab3A and lab3B