Lab 6 in-class final version