L-Functions from Algebraic Geometry