Added check for unused replacements
Added primtitive example