lesson write controller