Made virgilio.extend$ more intuitive to use.

Added an example for using it too.