use cutesy utility
converted a bunch more chapter 12 examples to Swift