Pion photoproduction treating nuclei as elementary particles