Elementary methods in the theory of L-functions