lab2 and 3