lab3 and lab4