Use '[' surrounding for arguments of functions
first crack at getting variables in scope / context
prefer do-while