Created torus creating function