QDA Working with ref https://onlinecourses.science.psu.edu/stat857/node/80