Add foo() method