first version of full module PhOptimization (not functional)