assignment 1 - exercise 2.2.2 reduce dimensions