Change attr_accessor to attr_writer