added renderer to example code