got the writing method finished
adding upate test to yaml_spec so far it is failing