Development of the rehabilitation system using haptic device