In accordance with rule 44.2, the penalty may be one turn including one tack and one gybe before finishing. Therefore the penalty was taken in accordance with the rule.