lab6 updated and working