Dirichlet and Neumann Boundary conditions working for a 2D case