added code from example back in to the script area