adding a function to get one entitlement
adding code to handle the option 'entitlement'