data munging part1 (ruby)