array hash ruby successful