Looks like you have the idea, but your notation is a little off. For example you mean .
In your last line you can't use A - it's already being used for the index set. Perhaps use X instead. Your last line should look something like this:
Of course you still have to check closure under countable unions and intersections, but each part of the proof is quite straightforward.