Coded matings