California prisons reduce inmate classes to save costs