changed MyClass to MyListener