updated lab4 writeup