movingObject class