featured a story about capital punishment. His idea was based on a film treatment detailing the colony planet of Llarof where capital punishment is handed down as a sentence for any offense except against those who are immune from the law. In the treatment, a security officer is killed by a local law enforcement officer, who is then killed himself by his partner for unjustly killing the Enterprise crewman. The planet would have had a rebel faction who wanted to overthrow the laws, which Picard refused to back initially whilst citing the Prime Directive. A second draft featured a rebel leader executed for treason. Black explained the premise of a society that developed laws to prevent terrorism and chaos: "Let's say that what we do is kill everybody who is a terrorist or suspected of being a terrorist. Now the people who have killed everybody, what do they do?" The idea was re-written by the show's creator Gene Roddenberry and writer Worley Thorne. It was Roddenberry and Thorne who created the godlike entity and sexed up the Edo. James L. Conway directed the episode, having just finished the MacGyver episode, "Jack in the Box". Josh Clark, who plays a Conn officer in "Justice", later appears as Lt. Joe Carey in all seven seasons of Star Trek: Voyager. "Justice" is the first episode of Star Trek: The Next Generation filmed mostly on location, and the first of any scenes on location other than those set in the holodeck in "Encounter at Farpoint". Scenes shot at The Japanese Garden (Tillman Water Reclamation Plant) in Van Nuys, Los Angeles, were located under the flight path for the Van Nuys Airport. The noise from overhead planes was so loud, the actors were required to re-record their lines in the studio. Filming for the scene where Wesley crashes into the greenhouse occurred on the grounds of the Huntington Library in Pasadena, California. The 2012 book, Star Trek: The Next Generation 365 notes that Tillman Water Reclamation Plant was so successful as a shooting location, it was re-used for production in the episode "The First Duty" and several more times as a shooting location for other shows including Star Trek: Deep Space Nine. Reception "Justice" first aired in broadcast syndication on November 8, 1987. It received Nielsen ratings of 12.7 million, placing it in third place in the timeslot. It ranked the second highest viewed episode