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