Starter code for dimensionality reduction