Sigmund Freud's psychosexual stages of development include the phallic stage, where children develop an attraction to the parent of the opposite sex and feelings of rivalry towards the parent of the same sex. The "Electra complex" specifically refers to this phenomenon in girls. Jean Piaget's cognitive stages describe the development of thinking. The phallic stage of psychosexual development overlaps significantly with the preoperational stage of cognitive development.