extracted Accelerometer and Location tracking into separate classes