The Dirichlet Problem on a Rectangle