It is lawful for any railroad company organized, existing, or doing business in the state of Colorado under the laws of the state of Colorado, upon good consideration, to guarantee the payment of any mortgage, mortgage bonds, or interest coupons of any other railroad connecting with said first named railroad. It is also lawful for any such railroad, upon good consideration, to guarantee to said road the payment of interest upon its capital stock.