My ruby code for the cs169.1x Course at edX.