rewrite files in tutorial 41