erb format and OpenStruct usage added