As the beans cook, they tend to produce foam on top of the water. You can spoon the foam off, or just leave it. Over time, the foam will disappear.