Added code to ruby files.