The memory function formalism in the study of the dynamics of a many body system