finite element method class