working on empirical risk minimization and regularization