Two chambers furnace