re-arranges data with ruby