Completed the PCA portions of homework 7