How to create new function in Ocean?
===

I am using Ocean 2010.2 and I cannot create a new function with CreateFunction method. It says, that "it does not exist in the current context".
Any help will be highly appreciated!