move PrintAll() to examples