added example SGD to simulator.py