Basics of dynamical systems