creating a script to extend functionality

creating a script to extend functionality on the fly