Finite Element Method Implementation