12.
What is the purpose of the `attr_accessor` method in Ruby?