lab3 document and code