The slingshot scene was written into the movie by screenwriter Edwin Burke after he learned of Temple's natural ability to use the slingshot.
The addition of the slingshot scene to the film was made possible after screenwriter Edwin Burke learned about Temple's natural ability to use a slingshot.