This book discusses basic topics in the spectral theory of dynamical systems. Lastly, the second edition includes a new chapter “Calculus of Generalized Riesz Productsâ€, which discusses the recent work connecting generalized Riesz products, Hardy classes, Banach's problem of simple Lebesgue spectrum in ergodic theory and flat polynomials.