Andy loves taking notes. He started the school year with 45 pages of notes from last year and he plans to take 2 pages of notes during each class he attends this year. When Andy has 125 pages of notes how many classes will he have attended?