Classification of homomorphisms and dynamical systems