The Dirichlet problem for harmonic functions