Ex7: first part of PCA solution