function vs a method - Search