Retirement tax questions

* then only paying taxes on the gain not the original contribution