The Course talks with regard to the ego in a way that may be outside of what Freud did. Freud saw the Moi as obtaining some sort of benefit, for a mediator among our morals and mores on the just one hand, and our unconscious urges and impulses on another. https://www.youtube.com/watch?v=2az-JmMnPV4