Studying the Z Boson with the ATLAS Detector at the LHC