Add example to is_commit method