The guy of the DontTrustThisGuy blog wanted to share his code of a basic statistics application he built for a client that offers a website affiliate program. So he wrote a post entitled "I’m on Rails: Coding Statistics" where he shows a good illustration of how to tackle a cumbersome project relatively easily. He gave 3 functions: