Random Optimizer base class
clean up to make sure it works