A method and system for controlling the exercise program