simple reactor example