correct syntax in examples

function definitions were missing the equals.
Merge pull request #2 from stephennancekivell/patch-1

correct syntax in examples