Sky Police

"Sky Police" is the 16th episode of the 26th season of the American animated sitcom "The Simpsons", and the 568th overall episode of the series. It first aired on the Fox network in the United States on March 8, 2015.
Plot.
Chief Wiggum is mistakenly delivered a military jet pack, which he gleefully accepts. He later is found by a military general who originally bought the jet pack, and received his order for an off-brand dust ruffle. Wiggum tries to escape, but is shot down by the general's soldiers. The jet pack goes off course and crashes into the church, causing massive damage. Because Reverend Lovejoy didn't get an insurance plan that covers "acts of God" the company gleefully denies his claim and the building is left unusable.
The congregation, led by Marge, must resort to gambling and counting cards, taught by Apu, in order to collect money to pay for the repairs. Marge then proceeds to go to the casino with Sideshow Mel, Ned Flanders, Agnes Skinner and Reverend Lovejoy and his wife Helen. They win enough money for the church but Homer finds out (Marge lied to him that they were preparing a comedy revue to raise money for the church) and goes looking for Marge at the casino. The casino then holds Homer hostage in exchange for the return of the money won, but the church already gave it to the contractor, who refuses to give it back.
Marge prays in the middle of the casino which attracts a huge crowd. Having data that shows the prayer is a "disturbance" that is hurting business, the manager releases Homer and allows Marge to keep the money won for the church in exchange for Marge and her group leaving and never returning. Homer then demands that the casino stop treating people who count cards as cheaters when all they are doing is playing by the rules, so a robot picks him up and throws him into the street. The family then enjoys a lovely sunset in front of their fully restored house of worship.
Cultural references.
Chief Wiggum's song "Sky Police" is a parody of "Baby Face" as sung by Julie Andrews in the musical "Thoroughly Modern Millie".
The main plot of the episode is an homage to the film "21", in which a Massachusetts Institute of Technology (MIT) graduate is recruited to a card-counting ring by his college tutor and gambles in order to raise tuition fees; in a similar way, Apu reveals he attended an "MIT" twice - first the Mumbai Institute of Tantric-Sex, where he was recruited by a card-counting ring and earned enough money to buy fake SAT scores to get into the real Massachusetts Institute of Technology; there, he failed every class and was kicked out and therefore had to move to Springfield.
The casino montage scenes are a parody of the casino montages in the 2000s "Ocean's films", with betting values flashing up on-screen and a music theme that echoes David Holmes' soundtracks for the "Ocean's" films.
Reception.
The episode received a 1.6 rating and was watched by a total of 3.79 million people, making it the third most watched show on Fox that night after "Family Guy" and "The Last Man on Earth".
Matt Selman was nominated for a at the 68th Writers Guild of America Awards for his script to this episode.