updated lab8, 9