Calculating Crystal Structure and Lattice Parameters Using X-ray Diffraction