Adding the similarTo method