This video demonstrates how to move code from myFirstMethod to scene procedures.
You should try this on your own after watching the video.