Structure of dynamical systems