 Hoover entered Stanford University in 1891, its inaugural year, despite failing all the entrance exams except mathematics.During his freshman year, he switched his major from mechanical engineering to geology after working for John Casper Branner, the chair of Stanford's geology department.Hoover was a mediocre student, and he spent much of his time working in various part-time jobs or participating in campus activities.