hw2 diagram