correct syntax in examples

function definitions were missing the equals.