In-class final version of Lab7