code from each of the labs