I need help verifying and completing my solution to problem 2.1.19 of Hatcher's book Algebraic Topology.
Calculate the homology groups of the subspace of $I \times I$ consisting of its 4 boundary edges and all the points in its interior with rational first coordinate.
Here is my partial solution: Let $X$ be the given space, let $Y$ be the top and bottom edge, and let $Z = I \cap \mathbb{Q}$. We have $H_k(Y) = 0$ for $k > 0$, so $H_k(X) \approx H_k(X, Y)$ for $k>1$ using the long exact sequence for the pair $(X, Y)$. Note that $(X, Y)$ is a good pair (i.e. $Y$ is a deformation retract of a neighbourhood in $X$), and $X/Y$ is the suspension $SZ$. Therefore, $H_{k+1}(X, Y) \approx \widetilde H_{k+1}(X/Y) \approx \widetilde{H}_k(Z)$, using the relationship between the homology of a space and the homology of its suspension. This gives $H_{k+1}(X) \approx \widetilde{H}_k(Z)$ for $k>0$. The latter is $0$ since $Z$ is totally disconnected, so $X$ has trivial homology in dimensions 2 and above. I don't see an easy way to continue for dimension $1$. Any hints would be appreciated.