How to write a contract to share the purchase of solar panels?

My mother would like to install solar panels on her roof but I and my two sisters would like to equally share the purchase with my mother. We would like to share the income produced from the solar panels. How do we correctly write up a legally binding contract to make this happen?