etude 5-1: rewrite