implementation saving models into yml files