created interface to calculate similarity