create ruby arrays for graphs