5.
What does the attr_accessor method do in Ruby?