Part A one similarity function