moved attributes() into model.rb