Introduction to the finite element method