WIP: added some notes, this is the logic

This should in theory work :(