adding attr_accessor lines on pin.rb model