The Course talks in regards to the ego in a way that is further than what Freud did. Freud observed the ego as getting some kind of benefit, for a mediator amongst our morals and mores within the a single hand, and our unconscious urges and impulses on the other. https://awakening-mind.org/resources/a-course-in-miracles/