added search example and comparison code