Change to_a method into to_hashes - more logical