It does take practice to know exactly how much flour to add despite the 'given quantities'. If it says 5 cups, then its an approximate. Humidity in the room affects how much flour to add, so does how much water you added, even brands of flour differ slightly in density and absorption.
As said, when you add flour and knead, you add only enough so that the dough is still slightly sticky but can be moved and kneaded. And once you reach the 2 minute kneading point, stop adding any more flour. BTW, kneading is not punching the dough around, which a lot of people seem to do.
And breads do require a portion of hard (bread) flour rather than all purpose. Bread flours contain more gluten for the stretching/rising process. Pastry flours absolutely will not work for breads.