See the YAML_Elments value procedure in
Also, study up on procedure parameters, and how they make procedures reusable.