lab6 writeup