replacing from attr to attr_reader, to compile on ruby 1.9.3