example to compare attributes.