lab1 code