The NAACP sought out cases that infringed on the Fourteenth and Fifteenth Amendments in order to set legal precedents and ultimately secure the constitutional rights of African Americans. An early victory was Buchanan v. Warley, a case involving residential segregation in Louisville, Kentucky. Louisville and other cities passed ordinances to prevent people of color from residing in white neighborhoods. Moorfield Storey, the NAACP’s first president and a constitutional attorney, argued the case before the Supreme Court in April 1917. The Court reversed the decision of the Kentucky Court of Appeals, ruling that the Louisville ordinance violated the Fourteenth Amendment. As a result of the ruling, whites resorted to private restrictive covenants, in which property owners agreed to sell or rent to whites only.