link all four classes

tried resubstitution and DLDA, but bug in resubstitution