updated lab session example code