gravity ball with class
class gravity ball with array