Question: Who was thee first president of the association that wrote the code of ethics for psychology?

full_context: Document 1: Adolescence: The formal study of adolescent psychology began with the publication of G. Stanley Hall's "Adolescence in 1904." Hall, who was the first president of the American Psychological Association, viewed adolescence primarily as a time of internal turmoil and upheaval (sturm und drang). This understanding of youth was based on two then new ways of understanding human behavior: Darwin's evolutionary theory and Freud's psychodynamic theory. He believed that adolescence was a representation of our human ancestors' phylogenetic shift from being primitive to being civilized. Hall's assertions stood relatively uncontested until the 1950s when psychologists such as Erik Erikson and Anna Freud started to formulate their theories about adolescence. Freud believed that the psychological disturbances associated with youth were biologically based and culturally universal while Erikson focused on the dichotomy between identity formation and role fulfillment. Even with their different theories, these three psychologists agreed that adolescence was inherently a time of disturbance and psychological confusion. The less turbulent aspects of adolescence, such as peer relations and cultural influence, were left largely ignored until the 1980s. From the '50s until the '80s, the focus of the field was mainly on describing patterns of behavior as opposed to explaining them.
Document 2: APA – The Engineered Wood Association: APA – The Engineered Wood Association is a nonprofit trade association of the United States and Canadian engineered wood products industry. They represent engineered wood manufacturers and mandate things such as quality testing, product research, and market development. APA's corporate headquarters are in Tacoma, Washington. The headquarters campus includes an office building and a 42,000-square-foot Research Center. A regional quality testing laboratory is located in Atlanta, Georgia.
Document 3: Adolescence: A broad way of defining adolescence is the transition from child-to-adulthood. According to Hogan & Astone (1986), this transition can include markers such as leaving school, starting a full-time job, leaving the home of origin, getting married, and becoming a parent for the first time. However, the time frame of this transition varies drastically by culture. In some countries, such as the United States, adolescence can last nearly a decade, but in others, the transition—often in the form of a ceremony—can last for only a few days.
Document 4: APA style: The sixth edition of the Publication Manual of the American Psychological Association is the most current. It was released in July 2009 after four years of development. The Publication Manual Revision Task Force of the American Psychological Association established parameters for the revision based on published critique; user comments; commissioned reviews; and input from psychologists, nurses, librarians, business leaders, publishing professionals, and APA governance groups (APA, 2007a, 2007b). To accomplish these revisions, the Task Force appointed working groups of four to nine members in seven areas: bias - free language, ethics, graphics, Journal Article Reporting Standards, references, statistics, and writing style (APA, 2009, pp. XVII -- XVIII).
Document 5: Programming ethics: In the early 1990s, Donald Gotterbarn claimed that computer ethics should be considered as professional ethics that could have the power to lead towards the development and advancement of standards of good practice and codes of conduct for computing professionals (Bynum). He worked with several professional - ethics advocates to write ethical guidelines for creating codes of Ethics. He formed part of the creation of Code of Ethics and Professional Conduct, adopted by the Association for Computing Machinery (ACM) in 1992, and Software Engineering Code of Ethics and Professional Practice, adopted by the Institute of Electrical and Electronics Engineers (IEEE) and the ACM as well. These codes also include Programming Ethics principles.
Document 6: Social psychology: The first published study in this area was an experiment in 1898 by Norman Triplett, on the phenomenon of social facilitation. During the 1930s, many Gestalt psychologists, most notably Kurt Lewin, fled to the United States from Nazi Germany. They were instrumental in developing the field as something separate from the behavioral and psychoanalytic schools that were dominant during that time, and social psychology has always maintained the legacy of their interests in perception and cognition. Attitudes and small group phenomena were the most commonly studied topics in this era.
Document 7: History of science: The end of the 19th century marks the start of psychology as a scientific enterprise. The year 1879 is commonly seen as the start of psychology as an independent field of study. In that year Wilhelm Wundt founded the first laboratory dedicated exclusively to psychological research (in Leipzig). Other important early contributors to the field include Hermann Ebbinghaus (a pioneer in memory studies), Ivan Pavlov (who discovered classical conditioning), William James, and Sigmund Freud. Freud's influence has been enormous, though more as cultural icon than a force in scientific psychology.
Document 8: Psychoanalytic theory: Psychoanalytic theory is the theory of personality organization and the dynamics of personality development that guides psychoanalysis, a clinical method for treating psychopathology. First laid out by Sigmund Freud in the late 19th century, psychoanalytic theory has undergone many refinements since his work. Psychoanalytic theory came to full prominence in the last third of the twentieth century as part of the flow of critical discourse regarding psychological treatments after the 1960s, long after Freud's death in 1939, and its validity is now widely disputed or rejected. Freud had ceased his analysis of the brain and his physiological studies and shifted his focus to the study of the mind and the related psychological attributes making up the mind, and on treatment using free association and the phenomena of transference. His study emphasized the recognition of childhood events that could influence the mental functioning of adults. His examination of the genetic and then the developmental aspects gave the psychoanalytic theory its characteristics. Starting with his publication of The Interpretation of Dreams in 1899, his theories began to gain prominence.
Document 9: Adolescence: In 1989, Troiden proposed a four-stage model for the development of homosexual sexual identity. The first stage, known as sensitization, usually starts in childhood, and is marked by the child's becoming aware of same-sex attractions. The second stage, identity confusion, tends to occur a few years later. In this stage, the youth is overwhelmed by feelings of inner turmoil regarding their sexual orientation, and begins to engage sexual experiences with same-sex partners. In the third stage of identity assumption, which usually takes place a few years after the adolescent has left home, adolescents begin to come out to their family and close friends, and assumes a self-definition as gay, lesbian, or bisexual. In the final stage, known as commitment, the young adult adopts their sexual identity as a lifestyle. Therefore, this model estimates that the process of coming out begins in childhood, and continues through the early to mid 20s. This model has been contested, and alternate ideas have been explored in recent years.
Document 10: American Sociological Association: The American Sociological Association is governed by a code of ethics and ethical standards. In 1970, the first ASA code of ethics was written. Since 1970, the code of ethics has been revised. The Committee on Professional Ethics worked to write this code and upon completing and approving it in 1997, the code focused on three goals. These three goals were to make the code more educative, accessible, easier to use, and more helpful for sociologists to understand ethical issues.
Document 11: Quantitative psychology: In August 2005, the American Psychological Association expressed the need for more quantitative psychologists in the industry—for every PhD awarded in the subject, there were about 2.5 quantitative psychologist position openings. Due to a lack of applicants in the field, the APA created a Task Force to study the state of quantitative psychology and predict its future. Domestic U.S. applicants are especially lacking. The majority of international applicants come from Asian countries, especially South Korea and China. In response to the lack of qualified applicants, the APA Council of Representatives authorized a special task force in 2006. The task force was chaired by Leona S. Aiken from Arizona State University.
Document 12: Psychosexual development: In Freudian psychology, psychosexual development is a central element of the psychoanalytic sexual drive theory, that human beings, from birth, possess an instinctual libido (sexual energy) that develops in five stages. Each stage -- the oral, the anal, the phallic, the latent, and the genital -- is characterized by the erogenous zone that is the source of the libidinal drive. Sigmund Freud proposed that if the child experienced sexual frustration in relation to any psychosexual developmental stage, he or she would experience anxiety that would persist into adulthood as a neurosis, a functional mental disorder.
Document 13: Adolescence: Adolescence (from Latin adolescere, meaning "to grow up") is a transitional stage of physical and psychological human development that generally occurs during the period from puberty to legal adulthood (age of majority). The period of adolescence is most closely associated with the teenage years, though its physical, psychological and cultural expressions may begin earlier and end later. For example, although puberty has been historically associated with the onset of adolescent development, it now typically begins prior to the teenage years and there has been a normative shift of it occurring in preadolescence, particularly in females (see precocious puberty). Physical growth, as distinct from puberty (particularly in males), and cognitive development generally seen in adolescence, can also extend into the early twenties. Thus chronological age provides only a rough marker of adolescence, and scholars have found it difficult to agree upon a precise definition of adolescence.
Document 14: APA Ethics Code: The American Psychological Association (APA) Ethical Principles of Psychologists and Code of Conduct (for short, the Ethics Code, as referred to by the APA) includes an introduction, preamble, a list of five aspirational principles and a list of ten enforceable standards that psychologists use to guide ethical decisions in practice, research, and education. The principles and standards are written, revised, and enforced by the APA. The code of conduct is applicable to psychologists in a variety of areas across a variety of contexts. In the event of a violation of the code of conduct, the APA may take action ranging from termination of the APA membership to the loss of licensure, depending on the violation. Other professional organizations and licensing boards may adopt and enforce the code.
Document 15: Journal of Applied Psychology: The Journal of Applied Psychology is a monthly, peer-reviewed academic journal published by the American Psychological Association. The journal emphasizes the publication of original investigations that contribute new knowledge and understanding to fields of applied psychology (other than clinical and applied experimental or human factors, which are more appropriate for other American Psychological Association journals). The journal primarily considers empirical and theoretical investigations that enhance understanding of cognitive, motivational, affective, and behavioral psychological phenomena." The editor-in-chief is Gilad Chen (University of Maryland).
ground_truth: G. Stanley Hall
sub_queries: who wrote the code of ethics for psychology Answer: The American Psychological Association
Who was the first president of The American Psychological Association ? Answer: G. Stanley Hall