added user loop to example sketch