Studies of the eclipsing ternary Algol led to the "Algol paradox" in the theory of stellar evolution: although components of a binary star form at the same time, and massive stars evolve much faster than the less massive ones, it was observed that the more massive component Algol A is still in the main sequence, while the less massive Algol B is a subgiant at a later evolutionary stage. The paradox can be solved by mass transfer: when the more massive star became a subgiant, it filled its Roche lobe, and most of the mass was transferred to the other star, which is still in the main sequence. In some binaries similar to Algol, a gas flow can actually be seen.