Fixed function usage in example