Build a triode from scratch