lab2 final version