adding sgd ranking class