Order and chaos in dynamical systems