TASK 3: Added 2nd type boundary conditions