Added attr_accessor to Pin.rb