-Created new class for accelerometer.