One and Two Dimensional Exponential Sums