updated demos for SGD