Complete Lab1 Code