lab 6 code