lab4 looks to be done. Very similar to menzies code, though.