an exercise corresponding to TW's tw_ns_practice