added search method to Product model