The Course talks about the ego in a method which is past what Freud did. Freud observed the ego as acquiring some type of benefit, like a mediator between our morals and mores about the a person hand, and our unconscious urges and impulses on the opposite. Jesus suggests within https://awakening-mind.org/resources/a-course-in-miracles/