Information Dynamics and Open Systems: Classical And Quantum Approach