practice blocks for transactions with File class