Fix declarations for functions in examples

Thanks to Andrea Vigliotti for spotting this.
Merge pull request #24 from certik/fix_declaration

Fix declarations for functions in examples