class Test def main is shared stack = Stack() stack.push('aoeu') for s in stack .checkString(s) def checkString(s as String) is shared assert s == 'aoeu'