Background: The Smashing Pumpkins (or Smashing Pumpkins) are an American alternative rock band from Chicago, Illinois. Formed in 1988 by frontman Billy Corgan (lead vocals, guitar) and James Iha (guitar), the band included D'arcy Wretzky (bass guitar) and Jimmy Chamberlin (drums) in its original incarnation. It has undergone many line-up changes over the course of its existence, with the current lineup being Corgan, Chamberlin, Iha and guitarist Jeff Schroeder. Disavowing the punk rock roots of many of their alt-rock contemporaries, they have a diverse, densely layered, and guitar-heavy sound, containing elements of gothic rock, heavy metal, dream pop, psychedelic rock,progressive rock, shoegazing, and electronica in later recordings.
Context: After the breakup of his gothic rock band the Marked, singer and guitarist Billy Corgan left St. Petersburg, Florida, to return to his native city of Chicago, where he took a job in a record store and formed the idea of a new band to be called the Smashing Pumpkins. While working there, he met guitarist James Iha. Adorning themselves with paisley and other psychedelic trappings, the two began writing songs together (with the aid of a drum machine) that were heavily influenced by The Cure and New Order. The duo performed live for the first time on July 9, 1988 at the Polish bar Chicago 21. This performance included only Corgan on bass and Iha on guitar with a drum machine. Shortly thereafter, Corgan met D'arcy Wretzky after a show by the Dan Reed Network where they argued the merits of the band. After finding out Wretzky played bass guitar, Corgan recruited her into the lineup and the now-trio played a show at the Avalon Nightclub. After this show, Cabaret Metro owner Joe Shanahan agreed to book the band on the condition that they replace the drum machine with a live drummer.  Jazz drummer Jimmy Chamberlin was recommended by a friend of Corgan's. Chamberlin knew little of alternative music and immediately changed the sound of the nascent band. As Corgan recalled of the period, "We were completely into the sad-rock, Cure kind of thing. It took about two or three practices before I realized that the power in his playing was something that enabled us to rock harder than we could ever have imagined." On October 5, 1988, the complete band took the stage for the first time at the Cabaret Metro.  In 1989 the Smashing Pumpkins made their first appearance on record with the compilation album Light Into Dark, which featured several Chicago alternative bands. The group released its first single, "I Am One", in 1990 on local Chicago label Limited Potential. The single sold out and they released a follow-up, "Tristessa", on Sub Pop, after which they signed to Caroline Records. The band recorded their 1991 debut studio album Gish with producer Butch Vig at his Smart Studios in Madison, Wisconsin for $20,000. In order to gain the consistency he desired, Corgan often played all instruments excluding drums, which created tension in the band. The music fused heavy metal guitars, psychedelia, and dream pop, garnering them comparisons to Jane's Addiction. Gish became a minor success, with the single "Rhinoceros" receiving some airplay on modern rock radio. After releasing the Lull EP in October 1991 on Caroline Records, the band formally signed with Virgin Records, which was affiliated with Caroline. The band supported the album with a tour that included opening for bands such as the Red Hot Chili Peppers, Jane's Addiction, and Guns N' Roses. During the tour, Iha and Wretzky went through a messy breakup, Chamberlin became addicted to narcotics and alcohol, and Corgan entered a deep depression, writing some songs for the upcoming album in the parking garage where he lived at the time.
Question: How was the band formed?

Answer:
Corgan left St. Petersburg, Florida, to return to his native city of Chicago, where he took a job in a record store and formed the idea of a new band