Added to_yaml method