A foil is pretty much a character in a book of some sort that has opposite character traits from the main character, Its used to highlight the main characters features and personality.
<em>We wonder why worms wiggle.</em>
The cross section of a pyramid all the same sides