create a accelometer object class to allow the data be transferd inside of a object