Added method foo() to class DefaultController