SMS dit: Electromagnetics through the finite element method