Typo on examples

replaced fucntion to function