Added the entire answer as a readme.