adding ruby and cpp code