before using pointers for variable parameters
edited name of classes
edited name of classes
fixed minimizer. still some work to do