arrayref to hashref example