Subroutines in Xcode

I try to figure out how to use Xcode 4.0.2.

I have in Xcode left sidebar MyApp.applescript file, and now i added second .applescript file called MoreCode.applescript. How code in file one can call subroutine from file two?

In IB, create a blue cube (an object) and set it’s class to MoreCode. In your main script, make a property and connect it to the blue cube.

property moreCode : missing value

moreCode's someSubRoutine()