Almohtarif and the foundry