added cosine similarity and updated w/ example