add example showing how to use View