Reconstruction of Special and General Relativity