example of provider method and class