Unless otherwise agreed, a product of the mind in the production of which several persons are concerned jointly is owned by them as follows: 1. If the product is single, in equal proportions; or 2. If it is not single, in proportion to the contribution of each.