See this [doc](https://docs.google.com/document/d/1dOcf69LXspSJ6FOhgvrZNF5NWWnGF50Afa-YHb76T8U/edit?usp=sharing) I also created an ipynb to visualize the process: see pics in the doc