Added the function greeting to personController

Added a function to a controller.