Added script versions of example code.

Reviewed by: kiyan