Add accelerometer input and environment class