Added similarity function for building and owner