Implemented similarity function, prints to terminal