Charlie and the Chocolate Factory of this, both companies became highly protective of their chocolate-making processes. It was a combination of this secrecy and the elaborate, often gigantic, machines in the factory that inspired Dahl to write the story. 11-year-old Charlie Bucket lives in poverty in a small house with his parents and four grandparents. His grandparents share the only bed in the house, located in the only bedroom. Charlie and his parents sleep on mattresses on the floor. One day, Grandpa Joe tells him about the legendary and eccentric chocolatier Willy Wonka and all the wonderful candies he made until the other candymakers sent
Willy Wonka & the Chocolate Factory to buy the rights to the book and finance the picture for the purpose of promoting a new Quaker Oats "Wonka Bar". David L. Wolper and Roald Dahl agreed that the film would be a children's musical, and that Dahl himself would write the screenplay. However, Wolper changed the title to "Willy Wonka and the Chocolate Factory". Screenwriter David Seltzer conceived a gimmick exclusively for the film that had Wonka quoting numerous literary sources, such as Arthur O'Shaughnessy's "Ode", Oscar Wilde's "The Importance of Being Earnest", Samuel Taylor Coleridge's "The Rime of the Ancient Mariner" and William Shakespeare's "The Merchant