almost at part D

ive worked all the way up through most of part C, only a bit remains
and im just debugging app-exp to make it work