class DemoAgent < Agent property :field1 property :field2 def on_tick(simulation) end end