Implemented agreement class.