implemented gravityobject