A method and system for controlling harjoitteleun