if a positively charged rod is brought near a small piece of aluminum foil, electrons in foil are pulled towards rod, which leaves the bottom of the foil with a net positive charge. The attraction is stronger than repulsion because the attracting charges are closer than the repelling ones.