add GravitySensor Class in package motion