16.
What is the purpose of the attr_reader method in Ruby classes?

18.
What is the purpose of the attr_writer method in Ruby classes?