CODIGO PRINCIPAL