rewrite the tutorial