How to make new Class in new File with function/method with parameters

Hi !!!
I want make new class like NSObject with functions/methods (or something similar) in new file. Very important is that I want call functions/methods with parameters. For example:
In first file mainProgram.applescript:


property scriptOne : class "scriptOne"
script mainProgram
	on function1
		set a to scriptOne's onOne()
		a's sayHello ("Matt")
	end function1
end script

In second file mainProgramFunction.applescript:


script scriptOne
	on onOne()
		script scriptTwo
			on sayHello (saySomething)
				log saySomething
			end sayHello
		end script
	end onOne
end script

mainProgramFunction.applescript is add to Compile Sources.
How to make it work ??

Ow men, it was so easy :P.

In first file mainProgram.applescript:


property scriptOne : class "scriptOne"
script mainProgram
	on function1
		scriptOne's sayHello_("Matt")
	end function1
end script

In second file mainProgramFunction.applescript:


script scriptOne
	on sayHello_(saySomething)
		log saySomething
	end sayHello
end script

and of course mainProgramFunction.applescript is add to Compile Sources. Important thing is “_”. It’s mean that function or method it’s not void :stuck_out_tongue: and that’s it ;).