Added printing capabilities to example