What determines the ratio and what determines if these are compounds or molecules?