jpi: adding ridge regression