Let two $S^2$, $X_1 = S^2, X_2=S^2$ and $X_3 = S^1$. Let $N_i,S_i$ poles of $X_i$, $i = 1,2$ and $n,s$ poles of $X_3=S^1$. Consider the space that $S^1$ is between the two spheres and glued like $N_1 \sim n \sim N_2$ and $S_1 \sim s \sim S_2$. Im triying to compute the fundamental group but the intersection of the open sets is a $S^1$ and I cant compute the amalgamed product. Any idea?
Edit: I extend my idea but I think its wrong. Consider $U$ and $V$ open that are homotopy eq. to $S^2 \vee S^1 \vee S^1$. $U \cap V$ is homotopy equ. to $S^1$. Then $i_*,j_* : \mathbb{Z}\to \mathbb{Z}\star \mathbb{Z}$ are the identity map. Then $i_*(b) =b$ and $j_*(c) = c$, where $b$ and $c$ is a generator of $\pi_1U$ and $\pi_1V$. So
$$ \pi_1() = \langle a,b,c,d : i_*(b) = j_*(c)\rangle = F(a,b,d). $$






