Use hash with indifferent access and refactor
Examples of formatting based on row