Corrects extends method, adds examples.