completed adding illustrations of the code structure