more bk 2 ch 2 examples translated into swift