Principles of psychodynamics