Transform Ruby objects in functional style (EXPERIMENT)