Alex performing "Singing in the Rain" as he attacks the writer and his wife was not scripted. Stanley Kubrick spent four days experimenting with this scene, finding it too conventional. Eventually he approached Malcolm McDowell and asked him if he could dance. They tried the scene again, this time with McDowell dancing and singing the only song he could remember. Kubrick was so amused that he swiftly bought the rights to "Singing in the Rain" for $10,000.