Thanks a lot professor Hwang,
    I finally incorporated the z axis into the calculation, but i have one final question. Could
you tell the reason for having dt and what it is doing to the balls in the program. And once again
THANK-YOU very much.