simple reactor class