added more to the definition of similarity
added graphing