3 Formalism for pion photo-and electroproduction