adding runtime encode example
adding todictionary and togroupedictionary