finished lab2 and lab3