Created seperate classes for accelerometer and microphone