basic sanitization example without endorsement
added function examples and fixed issue with protected refs