https://hackpad.com/44XSLS6BQU0
Added plan D