added haptic controller class