Copied are_similar() function to ModelBase class
Added intended iteration code