moved attr_accessor to one line instead of 3.