Smart block defenition on the way: refactored block params and variables. Now we need dedicated class Scope which would provide available variables in scope and add port binding to new block class.