made SynapseOptimset class