initial code, ridge-regression classifiers