Code refactoring in classes.rb
Implemented attr_accessor without history.