Studying physics and linear algebra