SMS: Programming the finite element method :