finished figs 1 & 3. need to add markdown for graphics visualization.