Added basic similarity code; not commented