Added missing func variable

The func variable was missing in the readme. Its actively used in the example to input a text string, so copy pasting the sample will not work before adding this :wink: