complete code for lab2