lab 2 code