just a rough outline of machanics

put in the other file when ready