second part of doc examples for compare methods