Some ruby and cpp stuff learned on 08/05/2014