working on first touches chapter example
converted first bk 2 ch 5 example to swift