Introduction to the theory of similarity