4.2.3 Dealing with the boundary conditions