Make examples self-contained

That is, add necessary aliases and requires.