App using accelerometer and gyroscope in phone